<?php
/**
 * Controller implements basic funcionality of a controller
 * @package Core
 * @subpackage Controller
 * @category Controller
 * @author ricsi
 */
class Controller extends AController
{
	/**
	 * Constructor.
	 * @access public
	 * @param string $parameter
	 * @return void
	 */
	public function __construct($parameter = null)
	{
		if ($this->_view === null) {
			$this->_view = new View(DIR_TEMPLATES);
		}

		$this->_parameter = $parameter;
	}

	/**
	 * Send output.
	 * @access protected
	 * @param string $header
	 * @return void
	 */
	protected function _output($header = "html_headers.txt")
	{
		HTTP::sendOutput($this->_view, $header);
	}
}
?>
